package vo;

/**
 *
 * @author Alexander
 */
public class GradesVO implements IValueObject {

    private int id;
    private double value;
    private double percentage;
    private String groupId;
    private String type;
    private double total;

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String grupoId) {
        this.groupId = grupoId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public double getPercentage() {
        return percentage;
    }

    public void setPercentage(double percentage) {
        this.percentage = percentage;
    }

    public double getValue() {
        return value;
    }

    public void setValue(double value) {
        this.value = value;
    }

    /**
     * @return the type
     */
    public String getType() {
        return type;
    }

    /**
     * @param type the type to set
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * @return the total
     */
    public double getTotal() {
        return total;
    }

    /**
     * @param total the total to set
     */
    public void setTotal(double total) {
        this.total = total;
    }

    public void setTotal() {
        this.total = value * percentage;
    }
}
